package com.xianyun.site.support.convertor;

import com.xianyun.site.support.domain.model.SmsMessage;
import com.xianyun.site.support.dto.clientobject.SmsMessageCO;
import org.springframework.beans.BeanUtils;

/**
 * @author mac_zyj
 */
public class SmsConvertor {
    public static SmsMessage toEntity(SmsMessageCO message){
        SmsMessage smsMessage = new SmsMessage();
        BeanUtils.copyProperties(message, smsMessage);
        return smsMessage;
    }
}
